package com.game.ThauanFramework;

import java.util.HashMap;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Log;

import com.thauanLopes.smagasmaga.R;

public class BitmapStorage {
	
	private final String TAG = "Bitmap Storage";
	private HashMap<String, Bitmap> images;
	
	private Bitmap bacteria_comum_1;
	private Bitmap bacteria_comum_2;
	private Bitmap bacteria_comum_3;
	private Bitmap bacteria_comum_4;
	private Bitmap bacteria_comum_5;
	
	private Bitmap gameScene_bg;
	
	private Bitmap eye_sprite;
	

	public Bitmap getEye_sprite() {
		return eye_sprite;
	}

	private static BitmapStorage instance;
	
	public static BitmapStorage getInstance()
	{
		if(instance == null)
		{
			instance = new BitmapStorage();
		}
		
		return instance;
	}
	private BitmapStorage()
	{	
		
		this.images = new HashMap<String, Bitmap>();
		
		this.bacteria_comum_1 = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.spritesheet_bacteria_normal);
		this.bacteria_comum_2 = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.spritesheet_bacteria_normal2);
		this.bacteria_comum_3 = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.spritesheet_bacteria_normal3);
		this.bacteria_comum_4 = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.spritesheet_bacteria_normal4);
		this.bacteria_comum_5 = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.spritesheet_bacteria_normal5);

		this.gameScene_bg = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.static_background);
		
		this.eye_sprite = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.spritesheet_olhopego);
	}
	
	
	public void CreateBitmap(Bitmap bitmap, int source)
	{
		
	}
	
	// # GETTERS AND SETTERS #
	public Bitmap getBacteria_comum_1() {
		return bacteria_comum_1;
	}
	public Bitmap getBacteria_comum_2() {
		return bacteria_comum_2;
	}
	public Bitmap getBacteria_comum_3() {
		return bacteria_comum_3;
	}
	public Bitmap getBacteria_comum_4() {
		return bacteria_comum_4;
	}
	public Bitmap getBacteria_comum_5() {
		return bacteria_comum_5;
	}
	
	public Bitmap getGameScene_bg() {
		return gameScene_bg;
	}
}
